<?php
// to unset a cookie user "-" current time


setcookie('username', 'MyCookie', time() - 60);

header("Location: ../index.php");